package android.storefront.activity;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.storefront.common.utils.activity.ActivityUtils;
import android.storefront.common.utils.sound.SoundPoolUtils;
import android.widget.TextView;

public class WelcomeActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        ActivityUtils.getInstance().setFullScreenOrientation(this);
        
        setContentView(R.layout.welcome_log);
        
        //初始化声音Utils
        SoundPoolUtils.getInstance(this);
        
        //初始化版本
        TextView hakka_version = (TextView) this.findViewById(R.id.hakka_version);
        ActivityUtils.getInstance().initVersion(this,hakka_version);
        
        
        //两秒后跳转
        Handler handler = new Handler(Looper.myLooper());
        handler.postDelayed(new Runnable() {
			@Override
			public void run() {
				ActivityUtils.getInstance().leftIN_rightOUT_close_Transition(WelcomeActivity.this, WelcomeActivity.this, MainActivity.class);
			}
		},2000);
        
    }
        
}